package StudyClass;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PCB
{
    private   String name;            //进程名
    private  Double arrivalTime;    //就绪时间
    private Double serviceTime;      //执行一共多少时间
    private Integer startTime;        //开始时间
    private Double needServiceTime;  //还需要多少时间=执行时间+开始时间-当前时间 ***
    private Double endTime;          //结束时间
    private Double priority;          //优先级
    private Double turnaroundTime;    //进程周转时间
    private Double weightTrunaroundTime;    //进程带权周转时间

    private String status;                //状态
    private Double hpf;               //响应比
    {
        this.status="WFA";
    }
}
